package com.toplabs.unashu.service;

import com.toplabs.unashu.dto.*;
import com.toplabs.unashu.entity.Blog;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ityanger
 * @since 2020-08-23
 */
public interface BlogService {
    PageDto<BlogQuery> listBlog(SearchBlog searchBlog);

    int updateRecCom(RecCom recCom);

    int saveBlog(Blog blog);

    Blog getDraft(Long id);

    int deleteBlog(Long id);

    int countBlog(SearchBlog searchBlog);

    PageDto<PageBlog> getPageBlog(BlogPageable blogPageable);

    List<RecommendHotBlog> getHotBlog();

    List<RecommendHotBlog> getRecommendBlog();

    DetailedBlog getDetailedBlog(Long id);

    List<String> getBlogTimeSortList();

    List<ArchivesBlog> getArticleByMonth(String monthDate);

    void updateViews(Long id);
}
